package com.csii.activiti.server.core.utils;

import javax.sql.DataSource;

public class DataSourceUtils {

    private static String currentDatasourceName;

    private static String oracle = "oracle";

    private static String mysql = "mysql";

    private static String oracleType = null;

    public static void setCurrentDatasourceName(String currentDatasourceName) {
        DataSourceUtils.currentDatasourceName = currentDatasourceName;
    }

    public static String getCurrentDatasourceName() {
        return currentDatasourceName;
    }

    public static boolean isOracle(){
        return oracle.equals(currentDatasourceName);
    }

    public static boolean isMysql(){
        return mysql.equals(currentDatasourceName);
    }

    public static void setOracleType(String oracleType){
        DataSourceUtils.oracleType = oracleType;
    }

    public static String getOracleType(){
        return oracleType;
    }



}
